const requireEx = require('yi-require');

const middleware = (req, res, next) => {
  // let authInfo = req.context || req.context.authInfo;
  // if (!req.context || !req.context.authInfo) {
  //   return res.err.unauthorized();
  // }
  // authInfo = authInfo.authInfo;

  next();
};

module.exports = {
  open:false,
  description:'获取上传信息',
  middleware: middleware,
  handler: requireEx('yi-restful').r('file')
};